﻿<%@  Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.Models.ChangePasswordModel>" %>
<%@ Import Namespace="Beeldbankmvc.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"><%=DynamicContent.getTitle(Request.Path) %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-title">
        <h1><%=DynamicContent.getTitle(Request.Path) %></h1>
    </div>
    <%=DynamicContent.getBodyText(Request.Path)%>

    <p class="field-validation-error">
        Uw wijziging is opgeslagen.
    </p>
    <div id="register">
        <% using (Html.BeginForm())
           { %>
        <%: Html.ValidationSummary(true, "Het wijzigen van het wachtwoord is mislukt. Corrigeer de fouten en probeer het opnieuw.")%>
        <div>
            <fieldset>
                <legend>Wachtwoord wijzigen</legend>
                <p>
                    <%: Html.LabelFor(m => m.OldPassword) %>
                    <%: Html.PasswordFor(m => m.OldPassword) %>
                    <%: Html.ValidationMessageFor(m => m.OldPassword) %>
                </p>
                <p>
                    <label for="NewPassword">
                        <%: Html.LabelFor(m => m.NewPassword) %></label>
                    <%: Html.PasswordFor(m => m.NewPassword) %>
                    <%: Html.ValidationMessageFor(m => m.NewPassword) %>
                </p>
                <p>
                    <label for="ConfirmPassword">
                        <%: Html.LabelFor(m => m.ConfirmPassword) %></label>
                    <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </p>
            </fieldset>
            <p>
                <input type="submit" class="button" value="Wijzigen" />
            </p>
        </div>
        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AsideContent" runat="server">

        <% Html.RenderAction("Index2", "FilmStrip", new { number = 6 }); %>

</asp:Content>
